from wxpyview.ui.component.common.basewidget import *

class FlexGridRow(Widget):
    def _setSizerParams(self, meta_widget):
        self.sizer_params = {}
    
    def getSizerParams(self):
        return self.sizer_params

    def create(self, meta_widget):
        self._setSizerParams(meta_widget)
        return self
        
    @classmethod
    def finalize(cls, meta_widget):
        child_meta_widgets = meta_widget.getChildMetaWidgets()
        
        if len(child_meta_widgets) > 1:
            # TODO: to encompass with container
            pass
        elif len(child_meta_widgets) == 0:
            return None
        else: # only one child
            child_widget = child_meta_widgets[0].getWidget()
            return child_widget